import org.w3c.dom.ls.LSOutput;

import java.util.Scanner;

public class Test01 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);



        System.out.println("第一题：请输入一个数");
        int a = sc.nextInt();
        if (a % 2 == 0) {
            System.out.println(a + "是偶数");
        }else {
            System.out.println(a + "是奇数");
        }



        System.out.println("第二题：请输入三个数");
        int b1 = sc.nextInt();
        int b2 = sc.nextInt();
        int b3 = sc.nextInt();
        if (b1 < b2) {
            if (b1 < b3) {
                System.out.println("最小值是" + b1);
            }
            else {
                System.out.println("最小值是" + b3);
            }
        }
        else {
            if (b2 < b3) {
                System.out.println("最小值是" + b2);
            }
            else {
                System.out.println("最小值是" + b3);
            }
        }








        System.out.println("第三题：请输入小明的成绩");
        int score = sc.nextInt();
        if (score >= 95 && score <= 100){
            System.out.println("送小明iPhone");
        } else if (score >= 90) {
            System.out.println("送小明iPad");
        } else if (score >= 80) {
            System.out.println("送小明智能手表");
        } else{
            System.out.println("小明等着挨揍吧");
        }


        //100 9
        //200 8    200+ 7.5
        System.out.println("第四题：请输入顾客的类别和购物的金额");
        int value = sc.nextInt();
        int money = sc.nextInt();
        if (value == 0){
            if (money < 100){
                System.out.println(money);
            }else
            {
                System.out.println(money*0.9);
            }
        }else if (value == 1)
        {
            if (money < 200){
                System.out.println(money*0.8);
            }else
            {
                System.out.println(money*0.75);
            }
        }
    }
}
